import Vue from 'vue'
import Vuex from 'vuex'

import app from '@/store/modules/app.js'
import user from '@/store/modules/user.js'

Vue.use(Vuex); //vue的插件机制

//Vuex.Store 构造器选项
const store = new Vuex.Store({
  modules: {
    app,
    user
  }
})
export default store
